<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/WEB-INF/tld/ce.tld" prefix="ce" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/assit/";  //应用的地址名
String saveLaActionName = basePath+"CaseInvestigation_saveLa.action";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>回复情况录入</title>
<script type="text/javascript">
<!--
           $(function(){
              $('#isNormal').validatebox({
                   required:'true',
                   missingMessage:'请选择是否正常'
               }); 
              $('#drawReason').validatebox({
                  required:'true',
                  missingMessage:'基本情况及提请（移送）理由不能为空！',
                  validType:'length[1,500]'
              });
	           //点击添加按钮操作
			   $('#addBtn').click(function(){
                  $('#editForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#editForm').form({
			        url:'<%=saveLaActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
	            
	            
	            
	           $('#fileTr').css('display',$('#fileTd').html()!=''?"":"none");
			    $('#uploadFile').click(function(){
			    	if($('#uploadFile').css('color')=='gray')
			    		return;
			    	fileupload('fileId',null,'fileTd','approve',{param:{urlSplit:'&nbsp;'}},function(){
			    		$('#fileTr').css('display',$('#fileTd').html()!=''?"":"none");
			    	});
			    }); 
	            
           });
//-->
</script>
</head>
<body>
<s:form action="editForm" method="post">
  <s:hidden name="po.vcId"/>
  <s:hidden id="fileId" name="po.fileId"/>
	<table align="center" width="100%"  class="tb_add_th">
		
		<tr><th>纳税人识别号:</th><td><s:property value="po.taxpayerNumber"/></td>
			<th>涉案企业:</th><td><s:property value="po.involvedEnterprice"/></td>
		</tr>
		<tr><th>是否重点:</th><td><s:radio id="isImportant" name="po.isImportant" list="#{1:'是',0:'否'}" value="0"/></td>		    
			<th>是否保密:</th><td><s:radio id="isSecret" name="po.isSecret" list="#{1:'是',0:'否'}" value="0"/></td>
		</tr>
		<tr>
		   <th>提请原因:</th><td colspan="3"><s:textarea id="drawReason"  name="po.drawReason" label="提请原因"/></td>
		</tr>
		<tr><th align="left">电子材料：</th><td colspan=3><a id="uploadFile" href="javascript:void(0)">点击上传电子材料</a></td></tr>
	     <tr id="fileTr" colspan=4><td id="fileTd" colspan="4">
		  <s:property value="po.fileHtml" escape="false"/>
		  </td>
  		</tr>
	</table>    
</s:form>
</body>
</html>

